<template>
  <div>
    <div>
      <div class="btn">
        <el-button @click="changet">现有确诊</el-button>
        <el-button @click="changef">累计确诊</el-button>
      </div>
    </div>
    <Map :tag_1='tag'></Map>
  </div>
</template>

<script>
import Map from "@/components/Map";
export default {
  
  data() {
    return {
      //0现在1累计
      tag: 1
    };
  },
  methods: {
   
    changet() {
      this.tag =1;
    },
    changef() {
      this.tag = 0;
      // console.log(this.tag);
      
    }
  },
  components: {
    Map
  }
};
</script>

<style  scoped>
.btn .el-button:last-child {
  margin-left: 0;
}
</style>